/*
 * Copyright (c) 2017. Visionet and/or its affiliates. All right reserved.
 * VISIONET PROPRIETARY/CONFIDENTIAL.
 */
package com.visionet.jumper.core.common;

/**
 * 消息类， 用于传递各类信息/结果
 * @author TC.Ubuntu
 * @since 2017/7/4.
 */
public class Message {

	// 提示信息编码
	private String code;
	// 提示信息
	private String msg;
	//返回数据对象
	private Object data;

	public Message(){}

	public Message(String code, String msg) {
		this(code, msg, null);
	}

	public Message(String code, String msg, Object data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
}
